import { computed } from 'vue'

export function useLesson(store) {
    const addCount = () => {
        store.dispatch('lesson/addCount', 1)
    }

    return {
        count: computed(() => store.state.lesson.count),
        doubleCount: computed(() => store.getters['lesson/doubleCount']),
        addCount
    }
}
